﻿<?xml version="1.0" encoding="utf-8" ?> 
<Mapping  xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	
	<Entity type="Order" table="Orders">
		<Id field="OrderID">
			<Generator name="native">
				<Property name="dbType">Int32</Property>
			</Generator>
		</Id>
		<Attribute name="ProductName" type="System.String" field="ProductName" db-type="String" />
	</Entity>
	
	<Entity type="Customer" table="Customers">
		<Id field="CustomerID">
			<Generator name="native">
				<Property name="dbType">Int32</Property>
			</Generator>
		</Id>
		<Attribute name="ContactName" type="System.String" field="ContactName" db-type="String"/>
		<Reference name="Orders" entityChild="Order">
			<Rule parentField="CustomerID" childTable="Orders" childField="FK_CustomerID" />
		</Reference>
	</Entity>
	
</Mapping>
